import { _decorator, Collider, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('Trigger')
export class Trigger extends Component {

    trigger: Collider;

    start() {
        this.trigger = this.getComponent(Collider);
        this.trigger.on('onTriggerEnter', () => { }, this);
    }

    update(deltaTime: number) {

    }
}


